<?php
require_once "API.php";

$api = new API();

// no:HY4826P no:HA6346P1

$rules = json_decode('[{"field":"search_way","value":"\u5173\u952e\u8bcd\u641c\u7d22","behavior":true},{"field":"season","value":"\u6625\u5b63","behavior":true},{"field":"year","value":"2020\u5e74","behavior":true},{"field":"word_img","value":"","behavior":true},{"field":"initiator","value":"\u7cfb\u7edf\u7ba1\u7406\u5458","behavior":true},{"field":"season","value":"\u6625\u5b63","behavior":true},{"field":"year","value":"2020\u5e74","behavior":true},{"field":"widthheight","from":20,"to":24},{"field":"extra","value":"\u5e45\u5bbd(\u9ad8\u5bf9\u9ad8):20~24\u6ce2\u8fb9:\u5927\u82b1 OR \u4e2d\u82b1|\u5143\u7d20:\u6cd5\u5f0f\u7ecf\u5178|\u98ce\u683c:\u53cc\u6ce2|","behavior":true},{"field":"staff","value":"1","behavior":true},{"field":"staff_name","value":"\u7cfb\u7edf\u7ba1\u7406\u5458","behavior":true},{"field":"customer","value":"106","behavior":true},{"field":"cust_name","value":"\u6800\u6a58","behavior":true},{"field":"cust_code","value":"gjzzh111129","behavior":true}]', true);
//$result = $api->search("all AND (大花 OR 中花) AND (法式经典) AND (双波) ", $rules, 20, 1);

// $client = new Yar_Client("http://patternrpc.shaohuajj.com/server.php");
$client = new Yar_Client(RPC_URL);
$result = $client->search("all AND (大花 OR 中花) AND (法式经典) AND (双波) ", $rules, 20, 1);
print_r($result);
